package com.ByteDance.service.impl;

import com.ByteDance.model.po.VideoEntity;
import com.ByteDance.mapper.FeedMapper;
import com.ByteDance.service.IFeedService;
import com.ByteDance.service.Strategy;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * <p>
 * 视频表 服务实现类
 * </p>
 *
 * @author 朱哥
 * @since 2024-02-25
 */
@Service
public class FeedServiceImpl extends ServiceImpl<FeedMapper, VideoEntity> implements IFeedService {

    @Override
    public List<VideoEntity> getVideoByStrategy(Strategy feedStrategy, Timestamp timestamp) {
        return feedStrategy.getVideo(timestamp);
    }
}
